// 引入pinia 组件
import { defineStore } from 'pinia'
// ref
import { ref } from 'vue'
export const useCommonStore = defineStore('common', () => {
  const isFullscreen = ref<boolean>(false)
  //获取状态
  function getFullscreen() {
    return isFullscreen.value
  }
  //设置状态
  function setFullscreen(newStatus: boolean) {
    isFullscreen.value = newStatus
  }
  //返回pinia
  return { isFullscreen, getFullscreen, setFullscreen }
})
